package vns.client.view;

import vns.client.presenter.CalendarVPanelPresenter;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class CalendarVPanelUI extends Composite 
implements CalendarVPanelPresenter.Display{
	
	@UiField
	Button btLoad;
	
	private static CalendarVPanelUIUiBinder uiBinder = GWT
			.create(CalendarVPanelUIUiBinder.class);

	interface CalendarVPanelUIUiBinder extends
			UiBinder<Widget, CalendarVPanelUI> {
	}

	public CalendarVPanelUI() {
		initWidget(uiBinder.createAndBindUi(this));
	}
	
	@UiHandler("btLoad")
	void onBtLoadClick(ClickEvent event) {
		loadCalendar();
	}

	/*********************************************************************/
	private void loadCalendar() {
		// TODO Auto-generated method stub

	}

	/*********************************************************************/
	@Override
	public Button getLoadButton() {
		return btLoad;
	}

	@Override
	public void render() {
		// TODO Auto-generated method stub
		
	}
	
	@Override
	public Widget asWidget() {
		return this;
	}

}
